<?php

class Form_ExhibitionTabFormTag extends Zend_Form
{

    public function init()
    {
    	$element = new Zend_Form_Element_Select("tab-form-tag");
        $element->setLabel("Tag: ");
        $validator = new Zend_Validate_Int();
        $element->addValidator($validator);
        
        $table = new Model_DbTable_Tags();
        $records = $table->fetchAll();
        $element->addMultiOption(0, "Choose One");
        $element->setAttrib("onchange", "return loadCandidateArtworks(this);");
        foreach ($records as $record){
        	$element->addMultiOption($record->id, $record->name);
        }
        $this->addElement($element, "tab-form-tag");
        $this->setAttrib("id", "formtabformtag");
    }


}

